import { get, post } from '@/utils/request'



export const phoneLogin = (query) => {
  return post('/sys/phoneLogin', query)
}

export const passLogin = (query) => {
  return post('/sys/passLogin', query)
}
export const updatePassword = (query) => {
  return post('/sys/user/updatePassword', query)
}

export const getRandomImage = (query) => {
  return get('/sys/randomImage/' + query.time, query)
}

export const getSmsCodeToken = (query) => {
  return post('/admin/code/create_token.thtml', query)
}
export const getSmsCode = (query) => {
  return post('/admin/code/getMobileCode', query)
}
export const logout = (query) => {
  return get('/sys/logout', query)
}
export const authorize = (query) => {
  return get('/admin/authorize', query)
}

// export const blockDataAdd = (query) => {
//   return post('/block/data/saveOrUpdateBatch', query)
// }
